#!/bin/bash

set -e
set -x

registry=registry.cn-shenzhen.aliyuncs.com/jiangwenyu
version=v0.0.1

# lint
uv run mypy
# 检查并修复
uv run ruff check app --fix
# 格式化
uv run ruff format app

uv sync
DOCKER_BUILDKIT=1 docker build --no-cache -t ${registry}/admission-webhook-demo-py:${version} .
docker push ${registry}/admission-webhook-demo-py:${version}
